package com.xht.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xht.domain.ResponseResult;
import com.xht.domain.dto.RoleChangeStatusDto;
import com.xht.domain.dto.RoleDto;
import com.xht.domain.entity.Role;

import java.util.List;


/**
 * 角色信息表(SysRole)表服务接口
 *
 * @author makejava
 * @since 2025-03-04 21:08:01
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long userId);

    ResponseResult selectRolePage(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeStatus(RoleChangeStatusDto roleDto);

    ResponseResult addRole(RoleDto roleDto);

    ResponseResult updateRole(RoleDto updateRoleDto);

    ResponseResult deleteRole(Integer id);

    ResponseResult listAllRole();
}

